<?

$action = $action ? $action : 'manage';


switch($action){
	
	/* 文章管理 */
	case 'manage':
		$where = $_GET['parentid'] ? " WHERE parentid = $_GET[parentid] " : " WHERE parentid = 0 ";
		$sql = "SELECT * FROM `page` $where ORDER BY `id` DESC";
		$data = $db->getrecordinpage($sql,$pagesize=15,&$currentpageindex,&$pagecount,&$recordcount);
		include admin_tpl('page_manage');
		
	break;
}
?>